package com.ermace.robo.jumper;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import com.ermace.robo.jumper.R;

public class InstructionActivity extends Activity {

    private boolean backPressed = false;

	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.instructions);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        //getMenuInflater().inflate(R.menu.instructions, menu);
        return true;
    }
    
	@Override
	protected void onResume() {
		super.onResume();
			MainActivity.resumeMusic();
	}
	
	@Override
	protected void onPause() {
		super.onPause();
			if(!backPressed )
				MainActivity.pauseMusic();
	}
	
	@Override
	public void onBackPressed() {
		backPressed = true;
		super.onBackPressed();
	}
}
